package com.ehome.poct.core.repository;

import com.ehome.core.repository.BaseRepository;
import com.ehome.poct.core.api.dto.check.TestReportDataConfigDTO;

import java.util.List;
import java.util.Map;

public interface TestReportDataConfigRepository extends BaseRepository<TestReportDataConfigDTO> {

    /**
     * 获取报告的表头展示信息
     *
     * @param reportCode 检测报告码
     * @param stripCode  检测类型码
     * @return
     */
    List<String> getReportHeaders(String reportCode, Integer stripCode);

    /**
     * @param unionCode
     * @return
     */
    List<Integer> getTypeCodes(List<String> unionCode);

    Map<String, String> repoctCodeWithTypeCode();

    List<Integer> getAll(List<String> unionCode);

    List<TestReportDataConfigDTO> queryByRealStripCodeAndPropertyType(List<Integer> realStripCodeList, Integer testPropertyType);

    /**
     * 根据检查项查询报告配置
     *
     * @param stripeCodeList
     * @return
     */
    List<TestReportDataConfigDTO> findByStripeCodeIn(List<Integer> stripeCodeList);
}
